/**
 * Created by hms on 2020-08-18.
 */
import Vue from 'vue';
import Vuex from 'vuex'

//挂载
Vue.use(Vuex);

//加载modules!!!!!千万注意：这边{index} 是作为常量加进来
import { Menu } from './modules/Menu.js'
import { Login } from './modules/Login.js'
import { Account } from './modules/Account.js'
import { Role } from './modules/Role.js'
import { Notice } from './modules/Notice.js'
import { Upload } from './modules/Upload.js'
import { Banner } from './modules/Banner.js'
import { Community } from './modules/Community.js'
import { Grid } from './modules/Grid.js'
import { Organ } from './modules/Organ.js'
import { BasicData } from './modules/BasicData.js'
import { News } from './modules/News.js'
import { CommunityNotice } from './modules/CommunityNotice.js'
import { Volunteer } from './modules/Volunteer.js'
import { User } from './modules/User.js'
import { School } from './modules/School.js'
import { House } from './modules/House.js'
import { Person } from './modules/Person.js'
import { Company } from  './modules/Company.js'
import { Hospital } from './modules/Hospital.js'
import { SpecialPerson } from './modules/SpecialPerson.js'
import { ServiceTeam } from './modules/ServiceTeam.js'
import { DataCenter } from  './modules/DataCenter.js'
import { RandomPicture } from './modules/RandomPicture.js'
import { Comment } from './modules/Comment.js'
import { PersonType } from './modules/PersonType.js'
import { Log } from './modules/Log.js'
import { Work } from './modules/Work.js'

//创建VueX对象
const store = new Vuex.Store({
    state:{
        //分页配置
        page_sizes:[20,50,100],

    },
    modules:{
        Menu,
        Login,
        Account,
        Role,
        Notice,
        Upload,
        Banner,
        Community,
        Grid,
        Organ,
        BasicData,
        News,
        CommunityNotice,
        Volunteer,
        User,
        School,
        House,
        Person,
        Company,
        Hospital,
        SpecialPerson,
        ServiceTeam,
        DataCenter,
        RandomPicture,
        Comment,
        PersonType,
        Log,
        Work
    }
})
export default store
